export default [
  { name: '登录', path: '/login', component: './Login', layout: false },
  {
    name: '数据大屏',
    path: '/dataScreen',
    component: './DataScreen',
    layout: false,
  },
  {
    path: '/',
    redirect: '/home',
  },
  {
    name: '首页',
    path: '/home',
    component: './Home',
    icon: 'HomeOutlined',
  },
  // {
  //   name: '权限演示',
  //   path: '/access',
  //   component: './Access',
  //   icon: 'KeyOutlined',
  // },
  // {
  //   name: ' CRUD 示例',
  //   path: '/table',
  //   component: './Table',
  // },
  {
    name: '溯源信息',
    path: '/traceabilitySystem',
    component: './TraceabilitySystem',
    icon: 'ProfileOutlined',
    routes: [
      {
        path: '/traceabilitySystem',
        redirect: '/traceabilitySystem/material',
      },
      {
        name: '原料采购',
        path: '/traceabilitySystem/material',
        component: './TraceabilitySystem/Material',
        icon: 'DeploymentUnitOutlined',
      },
      {
        name: '仓库信息',
        path: '/traceabilitySystem/warehouse',
        component: './TraceabilitySystem/Warehouse',
        icon: 'ShopOutlined',
        routes: [
          {
            name: '原料仓库',
            path: '/traceabilitySystem/warehouse/materiaWare',
            component: './TraceabilitySystem/Warehouse/MaterialWareHouse',
          },
          {
            name: '成品仓库',
            path: '/traceabilitySystem/warehouse/finishedWareHouse',
            component: './TraceabilitySystem/Warehouse/FinishedWareHouse',
          },
        ],
      },
      {
        name: '制作信息',
        path: '/traceabilitySystem/production',
        component: './TraceabilitySystem/Production',
        icon: 'FireOutlined',
        routes: [
          {
            name: '清洗切割',
            path: '/traceabilitySystem/production/cleanCutting',
            component: './TraceabilitySystem/Production/CleanCutting',
          },
          {
            name: '烫煮冷却',
            path: '/traceabilitySystem/production/boilingCooling',
            component: './TraceabilitySystem/Production/BoilingCooling',
          },
        ],
      },
      {
        name: '质检信息',
        path: '/traceabilitySystem/qualityTest',
        component: './TraceabilitySystem/QualityTest',
        icon: 'SafetyOutlined',
      },
      {
        name: '物流信息',
        path: '/traceabilitySystem/logistics',
        component: './TraceabilitySystem/Logistics',
        icon: 'ShoppingCartOutlined',
      },
      {
        name: '包装信息',
        path: '/traceabilitySystem/pack',
        component: './TraceabilitySystem/Pack',
        icon: 'InboxOutlined',
      },
      {
        name: '区块链管理',
        path: '/traceabilitySystem/blockchain',
        component: './TraceabilitySystem/BlockChain',
        icon: 'CodeSandboxOutlined',
      },
      {
        name: '环境监测',
        path: '/traceabilitySystem/monitoring',
        component: './TraceabilitySystem/Monitoring',
        icon: 'LineChartOutlined',
      },
    ],
  },
  {
    name: '商城管理',
    path: '/shopmanage',
    component: '@/pages/ShopManage',
    icon: 'ShoppingCartOutlined',
    routes: [
      {
        path: '/shopmanage',
        redirect: '/shopmanage/product',
      },
      {
        name: '商品管理',
        path: '/shopmanage/product',
        component: './ShopManage/Product',
        icon: 'InboxOutlined',
      },
      {
        name: '订单管理',
        path: '/shopmanage/order',
        component: './ShopManage/Order',
        icon: 'InboxOutlined',
      },
      {
        name: '用户管理',
        path: '/shopmanage/user',
        component: './ShopManage/User',
        icon: 'UserOutlined',
      },
    ],
  },
  {
    name: '数据大屏',
    path: '/redirectDataScreen',
    component: './RedirectDataScreen',
    redirect: '/DataScreen',
  },
  {
    name: '菜品推荐',
    path: '/recommend',
    component: './Recommend',
    icon: 'LikeOutlined',
  },
  {
    name: '溯源查询',
    path: '/traceabilityQuery',
    component: './TraceabilityQuery',
    icon: 'SearchOutlined',
  },
];
